<template>
  <view class="content">
    211
    {{ wei }}{{ get1 }}{{ add }}
    <uni-badge text="1"></uni-badge>
    <uni-tag></uni-tag>
    <uni-table>
      <uni-tr>
        <uni-td>12</uni-td>
      </uni-tr>
    </uni-table>
    <uni-tag @click="add1" text="as">1231</uni-tag>
    <uni-title title="as" color="red"></uni-title>
    <text class="goods-icon-fenxiang"></text>
	<uni-tag @click="topage" text="as">to</uni-tag>
  </view>
</template>

<script>
import Vuex from "vuex";
export default {
  data() {
    return {
      title: "Hello",
    };
  },
  computed: {
    ...Vuex.mapState(["wei", "add"]),
    ...Vuex.mapGetters(["get1"]),
  },
  onLoad() {},
  methods: {
    ...Vuex.mapMutations(["add1"]),
	topage () {
		uni.navigateTo({
			url:'/pages/text/index'
		})
	}
    // loginTest() { // 获取用户信息
    // 	uni.getUserProfile({
    // 		desc: '登录',
    // 		success: (res) => {
    // 			console.log(res);
    // 			uni.getUserInfo({
    // 				success(res) {
    // 					console.log(res)
    // 				}
    // 			})
    // 		},
    // 		fail: (res) => {
    // 			console.log(res)
    // 		}
    // 	});
    // },
  },
  created() {
    // uni.reLaunch({ 分包跳转实例
    // 	url:'/A/index/subpack'
    // })
    uni.showToast({
      title: "as",
      duration: 1000,
    });
  },
};
</script>

<style>
.content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.logo {
  height: 200rpx;
  width: 200rpx;
  margin-top: 200rpx;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 50rpx;
}

.text-area {
  display: flex;
  justify-content: center;
}

.title {
  font-size: 36rpx;
  color: #8f8f94;
}
</style>
